package com.zc.controller.wj;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class WjServiceImpl implements WjService {
    @Autowired
    WjDao wjDao;

    @Override
    public List<Map> query() {
        return wjDao.query();
    }

    @Override
    public void add(Wjpojo wjpojo) {
        wjDao.add(wjpojo);
    }

    @Override
    public void delete(Integer id) {
        wjDao.delete(id);
    }

    @Override
    public void update(Wjpojo wjpojo) {
        wjDao.update(wjpojo);
    }
}
